/**
 * 
 */
package com.googlecode.dynargs.model.type;

/**
 * @author Federico De Faveri defaveri@gmail.com
 *
 */
public class ArrayType extends AbstractType {

	protected Type type;
	
	public ArrayType(String id, Type type) {
		super(id, MetaType.ARRAY);
		this.type = type;
	}

	/**
	 * @return the type
	 */
	public Type getType() {
		return type;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ArrayType [id=");
		builder.append(id);
		builder.append(", type=");
		builder.append(type);
		builder.append("]");
		return builder.toString();
	}

}
